package com.litign.personcontrol.service;

import com.litign.personcontrol.pojo.Emp;
import com.litign.personcontrol.pojo.PageBean;
import lombok.extern.slf4j.Slf4j;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;


public interface EmpService {
    PageBean page(Integer page, Integer pageSize, String name, Short gender,  LocalDate begin, LocalDate end);


    //批量删除
    void delete(List<Integer> ids);

    //新增员工
    void save(Emp emp);


    //根据id查询员工
    Emp getById(Integer id);

    //更新员工
    void update(Emp emp);

    Emp login(Emp emp);
}
